package com.supermarket.api.bean.cart;

import com.supermarket.api.entity.ProductEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 购物车数据
 * @author 李其伟
 * @date 2023/11/10
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel("购物车数据")
@Data
public class CartRes extends ProductEntity {

    @ApiModelProperty(value = "数量",dataType = "Integer")
    private Integer number;

    @ApiModelProperty(value = "商品货号",dataType = "Long")
    private String skuCode;

    @ApiModelProperty(value = "商品销售属性，json格式",dataType = "String")
    private String spData;

    @ApiModelProperty(value = "修改时间",dataType = "Date")
    private Date updateTime;

}
